package com.alks.function.mapper.stockdept.pcfactorystockquery;

import com.alks.entity.data.entity.PcSlipTemp;
import com.alks.function.data.dto.stockdept.pcfactorystockwork.OtMtlOutDto;
import com.alks.function.data.request.stockdept.pcfactorystockwork.OMtlWatiUpRequest;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ms
 * @since 2023-09-07
 */
@Mapper
public interface SD_SQ_PcSlipTempMapper extends BaseMapper<PcSlipTemp> {

    /*新增待入库数据*/
    void otherMtlWaitStockAdd(PcSlipTemp dto);

    /*金额等数据更新*/
    void otherMtlWaitStockUpdate(@Param("request") List<OMtlWatiUpRequest> request, @Param("slipType") String slipType);

    /*查询待出库明细*/
    List<OtMtlOutDto> getOtherMtlOutDtlQuery2(@Param("userName") String userName);

    /*新增待出库数据*/
    void otherMtlWaitStockAdd2(List<PcSlipTemp> temps);

    /*获取需要进行入库批处理的数据*/
    List<PcSlipTemp> tempToStkQuery(@Param("slipType") String slipType, @Param("companyId") String companyId, @Param("userName") String userName);
}
